import { MemoryPackSerializeHelper } from "../../Codes/Model/Generate/Share/Message/MemoryPackSerializeHelper";
import { BufferData } from "../../Decorator/Decorator";

export class SerializeHelper {

    public static Serialize(type: string, stream: BufferData) {
        return MemoryPackSerializeHelper.Serialize(type, stream);
    }

    public static Deserialize(type: string, stream: BufferData) {
        return MemoryPackSerializeHelper.Deserialize(type, (stream as Uint8Array).buffer);
    }

}